var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function c() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (c.prototype = e.prototype, 
    new c());
}), a = this && this.__decorate || function(t, e, o, c) {
    var r, n = arguments.length, i = n < 3 ? e : null === c ? c = Object.getOwnPropertyDescriptor(e, o) : c;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, o, c); else for (var s = t.length - 1; 0 <= s; s--) (r = t[s]) && (i = (n < 3 ? r(i) : 3 < n ? r(e, o, i) : r(e, o)) || i);
    return 3 < n && i && Object.defineProperty(e, o, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = cc._decorator, s = r.ccclass, c = r.property, l = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.out = null, t.finger = null, t.rect = cc.rect(), t.enabled = !0, t;
    }
    return i(t, e), t.prototype.start = function() {
        cc.tween(this.out).repeatForever(cc.tween().to(1, {
            scale: 1.1
        }).to(1, {
            scale: 1
        })).start(), cc.tween(this.finger).repeatForever(cc.tween().repeat(2, cc.tween().to(.35, {
            scale: 1.1
        }).to(.15, {
            scale: 1
        })).delay(.5)).start();
    }, t.prototype.init = function(t) {
        cc.Tween.stopAllByTarget(this.node), this.node.opacity = 255, this.node.setPosition(t);
        t = cc.v2(this.node.convertToWorldSpaceAR(cc.Vec2.ZERO));
        this.rect.x = t.x - 62.5, this.rect.y = t.y - 62.5, this.rect.width = 135, this.rect.height = 135;
    }, t.prototype.showCircle = function() {
        this.out.active = !0;
    }, t.prototype.hideCircle = function() {
        this.out.active = !1;
    }, a([ c(cc.Node) ], t.prototype, "out", void 0), a([ c(cc.Node) ], t.prototype, "finger", void 0), 
    a([ s ], t);
}(cc.Component);

n.default = l;